<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex布局</title>
</head>
<style>
    /* 布局原理:通过给父盒子添加flex属性,来达到控制子盒子的位置和排列方式 */
    div {
        display: flex;
        width: 80%;
        height: 600px;
        background-color: pink;
        justify-content: space-around;
    }

    div span {
        /* width: 150px; */
        height: 100px;
        background-color: aliceblue;
        margin: 5px;
        flex: 1;
    }
</style>

<body>
    <div><span></span><span></span><span></span></div>
</body>

</html>